Plot root locus and return plot handle

您所在的位置:网站首页 matlab 的plot Plot root locus and return plot handle

Plot root locus and return plot handle

#Plot root locus and return plot handle| 来源: 网络整理| 查看: 265

rlocusplot

Plot root locus and return plot handle

Syntax

h = rlocusplot(sys) rlocusplot(sys,k) rlocusplot(sys1,sys2,...) rlocusplot(AX,...) rlocusplot(..., plotoptions)

Description

h = rlocusplot(sys) computes and plots the root locus of the single-input, single-output LTI model sys. It also returns the plot handle h. You can use this handle to customize the plot with the getoptions and setoptions commands. Type

help pzoptions

for a list of available plot options.

See rlocus for a discussion of the feedback structure and algorithms used to calculate the root locus.

rlocusplot(sys,k) uses a user-specified vector k of gain values.

rlocusplot(sys1,sys2,...) draws the root loci of multiple LTI models sys1, sys2,... on a single plot. You can specify a color, line style, and marker for each model, as in

rlocusplot(sys1,'r',sys2,'y:',sys3,'gx')

rlocusplot(AX,...) plots into the axes with handle AX.

rlocusplot(..., plotoptions) plots the root locus with the options specified in plotoptions. Type

help pzoptions

for more details.

Examples

Use the plot handle to change the title of the plot.

sys = rss(3); h = rlocusplot(sys); p = getoptions(h); % Get options for plot. p.Title.String = 'My Title'; % Change title in options. setoptions(h,p); % Apply options to plot. Tips

You can change the properties of your plot, for example the units. For information on the ways to change properties of your plots, see Ways to Customize Plots.

Version History

Introduced before R2006a

See Also

getoptions | rlocus | pzoptions | setoptions



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3